// src/main/java/com.bookmanager.service/BorrowService.java
package com.bookmanager.service;

import com.bookmanager.dao.BorrowDAO;
import com.bookmanager.model.BorrowRecord;

public class BorrowService {
    private BorrowDAO borrowDAO = new BorrowDAO();

    public boolean borrowBook(String userId, int bookId) {
        return borrowDAO.borrowBook(userId, bookId);
    }

    public boolean returnBook(String userId, int bookId) {
        return borrowDAO.returnBook(userId, bookId);
    }
}
